package com.leiyk.rateLimiter.annotation;

import java.lang.annotation.*;

/**
 * @Description: 令牌桶限流注解
 * @Author: leiyk6
 * @Date: 2024/7/4 17:16
 */
@Target(ElementType.METHOD)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface LeakyRateLimiter {
    /**
     * @author leiyk6
     * @date 2024/7/9 14:57
     * desc: 漏桶消耗速率
     */
    int rate();



    /**
     * @author leiyk6
     * @date 2024/7/9 14:59
     * desc: 桶容量
     */
    int capacity();
}
